package sample.cluster.transformation

//frontend给backend定时发字符串，backend给大写后返回（backend得先向fronend注册）
//frontend收到结果后打印

object TransformationApp {

  def main(args: Array[String]): Unit = {
    // starting 2 frontend nodes and 3 backend nodes
    TransformationFrontend.main(Seq("2551").toArray)
    TransformationBackend.main(Seq("2552").toArray)
    TransformationBackend.main(Array.empty)
    TransformationBackend.main(Array.empty)
    TransformationFrontend.main(Array.empty)
  }

}

/*

Launch like this in script:

start /d/setup/Git/git-bash.exe sbt "runMain sample.cluster.transformation.TransformationFrontend 2551"
start /d/setup/Git/git-bash.exe sbt "runMain sample.cluster.transformation.TransformationBackend 2552"
start /d/setup/Git/git-bash.exe sbt "runMain sample.cluster.transformation.TransformationBackend 0"
start /d/setup/Git/git-bash.exe sbt "runMain sample.cluster.transformation.TransformationBackend 0"
start /d/setup/Git/git-bash.exe sbt "runMain sample.cluster.transformation.TransformationFrontend 0"


 */